import random, math

def gen_line(mean, std, n):
	for i in range(n):
		print random.gauss(mean, std)

def gen_linear(a, b, std, n):
	for i in range(n):
		x = i
		y = (a * x + b)
		print random.gauss(y, std)

# nao vai funcionar por que o kalman so consegue lidar com funcoes lineares
def gen_sigmoid(std, n):
	start = -50.0
	end = 50.0
	step = (end - start) / float(n - 1)
	for i in range(n):
		x = start + i * step
		y = 1.0 / (1 + math.exp(-x))
		print random.gauss(y, std)

if __name__ == "__main__":
	gen_line(10, 50, 100)
	#gen_linear(0.79, 3.0, 0.01, 100)
	#gen_sigmoid(0.1, 100)
